package com.chat.service;

import com.chat.Local;
import com.chat.common.Group;
import com.chat.common.Message;
import com.chat.common.MessageType;

/*
  发送加入群聊申请
 */
public class SendGroupApply {
       public void sendgroupapply(String groupid,String username){
              Message msg=new Message();
              msg.setMesType(MessageType.MESSAGE_SEND_GROUP_APPLY);
              Group group=new Group();
              group.setId(groupid);
              group.setAddid(username);
              msg.setData(group);
              ClientConnectServerThread clientConnectServerThread=ManageClientConnectServerThread.getClientConnectServerThread(Local.user.getUsername());
              clientConnectServerThread.send(msg);
       }
}
